home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
MatteBorderBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-10-21
|
2KB
|
65 lines
package com.symantec.itools.swing.borders;
import java.beans.*;
import com.symantec.itools.vcafe.beans.ObjectReferenceAttributes;
import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
public final class MatteBorderBeanInfo
extends BorderBeanInfo
{
public MatteBorderBeanInfo()
{
super();
set16x16ColorIconName("MatteBorder.gif");
}
protected Class getBeanClass()
{
return MatteBorder.class;
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
Class beanClass = getBeanClass();
PropertyDescriptor insets = new PropertyDescriptor("insets", beanClass);
insets.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.MATTEBORDER_INSETS_HELP_ID));
PropertyDescriptor color = new PropertyDescriptor("color", beanClass);
color.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.MATTEBORDER_COLOR_HELP_ID));
PropertyDescriptor tileIconPD = new PropertyDescriptor("tileIcon", beanClass);
tileIconPD.setValue(ObjectReferenceAttributes.OBJECTREFERENCE_DEFAULT_IS_NONE_ATTRIBUTE, Boolean.TRUE);
tileIconPD.setValue(ObjectReferenceAttributes.OBJECTREFERENCE_SHOW_POSSIBLE_COMPONENT_REFERENCES_ATTRIBUTE, Boolean.TRUE);
tileIconPD.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.MATTEBORDER_TITLE_ICON_HELP_ID));
PropertyDescriptor[] rv = {
insets,
color,
tileIconPD };
return rv;
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
//Error, return no properties
return new PropertyDescriptor[0];
}
protected void modifyBeanDescriptor(BeanDescriptor beanDescriptor)
{
super.modifyBeanDescriptor(beanDescriptor);
beanDescriptor.setValue("WINHELP", winHelpID);
}
protected final static String winHelpID = "0x60133";
}